#include "JsonUtil.h"
#include "Common.h"
#include <iostream>
#include <string>

using std::cout;
using std::endl;
using std::string;

void testJson();
void testUuid();

int main(int args, char *argv[])
{
    return 0;
}

void testUuid()
{

    // cout << sizeof(long) << ", " << sizeof(int) << ", " << sizeof(size_t) << endl;

    cout << (256 >> 8 & 0xff) << endl;
    cout << rpc::uuid() << endl;
    cout << rpc::uuid() << endl;
    cout << rpc::uuid() << endl;

    return;
}

void testJson()
{
    string content = "{\"content\": \"hello world\"}";

    Json::Value value;
    rpc::JsonUtil::unserialize(content, value);

    cout << value["content"] << endl;
    return;
}